<?php
/**
 * Template Name: logout
 *
 * 通用的登录注册
 * date:2011/4/11 
 * @author Ryan 
 * 
 */
session_start();
//unset($_SESSION['userdata']);
session_destroy();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="1; url=<?php bloginfo('home');?>" />
</head>
<body>
已退出，转向首页。
</body>
</html>